package cn.the.angry.model;

import org.jbox2d.dynamics.World;

import cn.the.angry.physics.AngryCircle;
import cn.the.angry.resourcemanager.ResourceManager;

public class Bird extends CircleBaseElement {
	
	public Bird(){
		super(ResourceManager.getLargeRedBirdImages(), 10);
		getSprite().setOffset(2, 2);
	}
	
	public void createBird(World world, float _x, float _y, float _density, float _friction
			   , float _restitution){
		radius=14;
		circle = new AngryCircle(world, _x, _y, _density, _friction, _restitution, radius, this);
		setBinding(true);
		getSprite().setActive(true);
		setWorld(world);
	}
	
	
}
